<h1>Login</h1>

<% if not flash[:error].blank? %>
	<div id="errorExplanation"><h2><%= flash[:error] %></h2></div>
<% end %>

<% form_tag session_path do -%>
	<div id="content_left">
		<p><label for="login">Login</label><br/>
		<%= text_field_tag 'login' %></p>
		<p><label for="password">Password</label><br/>
		<%= password_field_tag 'password' %></p>
		<p><%= submit_tag 'Log in' %> or <%= link_to 'sign up', signup_path %> here!</p>
	</div>

	<div id="content_right">
		Login with your <span id="openid_login">OpenID<span><br />
		<p><%= text_field_tag 'openid_url' %></p>
		<p><%= submit_tag 'Log in' %></p>
	</div>

	<!-- Uncomment this if you want this functionality
	<p><label for="remember_me">Remember me:</label>
	<%= check_box_tag 'remember_me' %></p>
	-->
	
	<div id="clear"></div>

<% end -%>
